<?php

if($_SERVER["REQUEST_METHOD"]=="GET"){
    print_r('true');
    return;
}

if(!(isset($_POST["uphone"]))){
//    $result=array("msg"=>"用户名或密码不能为空","status"=>-2);
    print_r('true');
//    return;
}
include  "DBhelper.php";

$uphone=$_POST["uphone"];

$sql="SELECT * FROM `usermessage` WHERE `utelphone`='".$uphone."'";

$resultData=sqlQuery($sql);

if($resultData->num_rows>=1){
    print_r('false');
}else {
    print_r('true');
}